﻿


using HBase;
using HBase.db;
using hCommand;
using Persistence;
using System;
using System.Collections.Generic;
namespace hconnect {
    public interface IWCSServer {
        public List<CoreTask> getWorkingCoreTask();
        T getById<T>(long id) where T : class;//根据id查询
        List<CoreWhLoc> getAllCoreWhLoc() ;

        
        void updateTaskParamStatus(long paramId,CoreTaskParamStatus status);
        bool updateWcsAutoActive(int craneId,int status);
        int updateTaskStatus(TaskStatusPersistence tsp);
        int beginTask(BaseTask bt);
        bool splitParam(long paramId);
        List<CoreTaskParam> getWorkingTaskParam(int init);

        List<BStn> GetPhysicalStns();
        List<BStnRelation> GetPhysicalStnRelation();
        List<BParam> getParams();
        BParam getParam(string driveType ,int driveId ,string key);

        TransRes doStockinLocEngine(String boxCode,int stn,int eigen);
        bool syncWcsReult(long paramId,int realStn);
        AbsCoreStock getCoreStockByCode(String code);
        List<AbsCoreStock> getCSBypkStn(int stn);

        String updateTaskPriority(long id,int p);

        String updateParamAt(long paramId,int stn);

        String doWcsMoveTask(int from,int to);

        String paramDelete(long id);

        String change99999(long paramid);


    }
}
